package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.TbUser;
import com.jk.smartelderlycare.interfaces.TbUserServiceApi;
import com.jk.smartelderlycare.service.TbUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hhk
 * @version 1.0
 * @ClassName TbUserController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/11/18 20:35
 */
@RestController
@Slf4j
public class TbUserController implements TbUserServiceApi {

    @Autowired
    private TbUserService tbUserService;
    /**
     * @description: 通过用户名获得用户信息
     * @param: [username]
     * @return: com.jk.smartelderlycare.dto.TbUser
     * @author hhk
     * @date: 2024/11/18 20:36
     */
    @Override
    public TbUser findTbUserByUsername(String username) {
        return tbUserService.findTbUserByUsername(username);
    }
}
